package hu.diploma.web.server.restlet.resources;

import hu.diploma.common.resource.UserResource;
import hu.diploma.common.vos.UserVo;
import hu.diploma.core.util.ServiceProviderImpl;

import org.restlet.representation.Representation;
import org.restlet.resource.ServerResource;

public class UserResourceImpl extends ServerResource implements UserResource {

	public Boolean registration(UserVo userVo) {
		try {
			ServiceProviderImpl.getServiceProvider().getUserService().registration(userVo);
			return true;
		} catch (Exception e) {

			e.printStackTrace();
			return false;
		}

	}

	public Boolean login(UserVo userVo) {
		try {
			return ServiceProviderImpl.getServiceProvider().getUserService().login(userVo);
		} catch (Exception e) {

			e.printStackTrace();
			return false;
		}

	}

	public String registration(String value) {
		// TODO Auto-generated method stub
		return null;
	}

	public Representation registration(Representation xmlValue) {
		// TODO Auto-generated method stub
		return null;
	}

	public String login(String value) {
		// TODO Auto-generated method stub
		return null;
	}

	public Representation login(Representation xmlValue) {
		// TODO Auto-generated method stub
		return null;
	}

}
